﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace CoreLims.Models.CoreLims
{
    public partial class UserManager
    {
        public class AuditTimeCompare : IEqualityComparer<AuditAuditTrail>
        {
            bool IEqualityComparer<AuditAuditTrail>.Equals(AuditAuditTrail x, AuditAuditTrail y)
            {
                return x.AuditTime == y.AuditTime;
            }

            int IEqualityComparer<AuditAuditTrail>.GetHashCode(AuditAuditTrail obj)
            {
                return obj.AuditTime.ToString().Length;
            }
        }

    }
}
